<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        
    </style>
</head>
<body>
    
</body>
<script>
    // var arr1 = [];
    // var arr3 = [];
    // var arr4 = arr1;
    // var arr2 = new Array();
    // console.log(arr1);
    // console.log(arr2);

    // 任何两个对象都不相等
    // console.log(arr1 === arr2);
    // console.log(arr1 === arr3);
    // 如果两个对象相等了，那么它俩就是一个对象
    // console.log(arr1 === arr4);

    // 区别
    var arr1 = [6];
    var arr2 = new Array(6);
    console.log(arr1);
    console.log(arr2);
</script>
</html>